Dynomotion

Group: DynoMotion Message: 5058 From: ralphdargham Date: 5/25/2012
Subject: How to modify Kmotion CNC
Hello,
I have been using the Kmotion CNC to control my machine. Thought the interface is quit useful, I would like to modify certain aspects (like creating more buttons).
I don't want to start from the beginning by creating my own GUI as I have limited programming skills. I found the source file for to build the libraries however, i was unable to find the source for Kmotion CNC.

I also would like to know how could the C program take a variable value from the user (like opening a dialogue box to ask for the value and return it to continue the program)

Best regards,
Ralph
Group: DynoMotion Message: 5062 From: Tom Kerekes Date: 5/25/2012
Subject: Re: How to modify Kmotion CNC
Hi Ralph,
 
There is a Visual Studio Solution at:
 
C:\KMotion429\PC VC Examples\BuildExamples
 
that includes KMotionCNC.  To run the debug configuration of KMotionCNC you will need to build the debug version of the Libraries (which it sounds like you already have).
 
Opening a dialog box to have the User enter a value is actually fairly difficult in Microsoft VC++ MFC.  You need to create a dialog class (a c++ and h file), add a dialog resource, add the member variable to the control, etc...  KMotionCNC does this for the Set DRO button using the SetValue.cpp and SetValue.h files and class.   So you might look at that as an example.
 
Regards
TK

From: ralphdargham <ralphdargham@...>
To: DynoMotion@yahoogroups.com
Sent: Friday, May 25, 2012 3:17 AM
Subject: [DynoMotion] How to modify Kmotion CNC

 
Hello,
I have been using the Kmotion CNC to control my machine. Thought the interface is quit useful, I would like to modify certain aspects (like creating more buttons).
I don't want to start from the beginning by creating my own GUI as I have limited programming skills. I found the source file for to build the libraries however, i was unable to find the source for Kmotion CNC.

I also would like to know how could the C program take a variable value from the user (like opening a dialogue box to ask for the value and return it to continue the program)

Best regards,
Ralph